package main

import "fmt"

type Hero struct {
	Name  string
	Ad    int
	Level int
}

func (this *Hero) GeName() string {
	return this.Name
}

func (this *Hero) SetName(newName string) {
	this.Name = newName
}

func (this Hero) SetName1(newName string) {
	this.Name = newName
}

func main() {
	hero := Hero{Name: "zs", Ad: 10, Level: 1}
	fmt.Println(hero)

	hero.SetName1("ls")
	fmt.Println(hero)

	hero.SetName("ls")
	fmt.Println(hero)
}
